<template>
  <li>
      <span>{{ todo.text }}</span><button @click="$emit('remove', todo.id)">X</button>
  </li>
</template>
<script>
export default {
  props: {
    todo: {
      type: Object,
      required: true
    }
  }
};
</script>
<style lang="scss">
#app-2 li {
  list-style: none;
  position: relative;
  margin-left: -50px;
}

#app-2 li button {
  border: none;
  margin-left: 10px;
  margin-top: 5px;
  background-color: #f46;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 3px 8px;
}
</style>
